package com.example.hms.dao;


import com.example.hms.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    //根据用户ID查询用户信息
    User login(@Param("userId")String userId);

    //条件查询所有用户
    List<User> selectAllUser(@Param("userId")String userId,
                             @Param("userName")String userName,
                             @Param("roleName")String roleName);

    //新增用户
    int insert(User user);
    //逻辑删除指定用户
    int update(User user);
}
